package com.only4play.portal.common.util;

import com.only4play.portal.common.error.PortalErrorException;
import com.only4play.portal.common.error.PortalErrorExceptionHandler;
import lombok.extern.slf4j.Slf4j;

/**
 * @author liyuncong
 * @version 1.0
 * @file LogExceptionHandler
 * @brief LogExceptionHandler
 * @details 日志异常处理器
 * @date 2024-06-11
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2024-06-11               liyuncong          Created
 */

@Slf4j
public class LogExceptionHandler implements PortalErrorExceptionHandler {

    @Override
    public void handle(PortalErrorException exception) {
        log.error("Error happens", exception);
    }
}
